<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>事件绑定</title>
    <script src="../../src/event-bind/index.js"></script>
</head>
<body>
    <ul id='items'>
        <li>AAAA</li>
        <li>BBBB</li>
        <li>CCCC</li>
        <li>DDDD</li>
        <div>EEEE</div>
    </ul>
    <script>
        //调用函数绑定事件
        addEventListener('#items', 'click', function(e){
            //输出标签文本
            console.log(this.innerHTML);
        }, 'li');
    </script>
</body>
</html>